#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

void print(int arr[],int len) {
	for (int i = 0; i < len; i++) {
		printf("%d ", arr[i]);
	}
}

void reverse(int arr[],int len) {
	for (int i = 0; i < len; i++) {
		arr[i] = i;
	}
	int left = 0;
	int right = len - 1;
	while (left < right) {
		int m = arr[left];
		arr[left] = arr[right];
		arr[right] = m;
		left++;
		right--;
	}
}
int main() {
	int arr[10] = { 0 };
	int len = sizeof(arr) / sizeof(arr[0]);
	print(arr, len);
	printf("\n");
	reverse(arr, len);
	print(arr, len);
}